package com.pan.client;

import java.net.URL;

import org.codehaus.xfire.client.Client;

public class SOAPClient {
public static void main(String[] args) throws  Exception {
	Client client = new Client(new URL("http://localhost:8080/WebServiceDemo/services/SOAPService?wsdl"));
	Object[] obs = new Object[] { "ZhangSan" };
	Object[] results = client.invoke("sayHello", obs);
	String xmlResult = results[0].toString();
	System.out.println(xmlResult);
	
}
}
